typedef unsigned char UBYTE;
typedef unsigned short UWORD;
typedef unsigned long ULONG;

extern int isamigatrack(UBYTE* mfmdata, int len, UBYTE* writebuffer, UBYTE* writebuffer_ok, int track);